from robot_component import *
class Robot(Entity):
    pos:Pos
    yunTai:YunTai
    def __init__(self,*setvalue) -> None:
        self.pos=Pos()
        self.yunTai=YunTai()
        super().__init__(*setvalue)

'''
[Player_name:玩家姓名]
[Player_prov:玩家权限]
[Player_species:玩家兵种]

    [Pos_x:世界坐标X][Pos_y:世界坐标Y]
    [Pos_z:世界坐标Z][Pos_yaw:底盘旋转角]

    [YunTai_yaw:云台yaw偏转角]
    [YunTai_pitch:云台pitch偏转角]
'''
class Player(Entity):
    #用户名
    h_Player_name:handle
    #权限
    h_Player_prov:handle
    #兵种
    h_Player_species:handle
    #实体参数
    entity:Entity
    
    def __init__(self,*setvalue) -> None:
        self.h_Player_name,self.h_Player_prov,self.h_Player_species=handle.Empty(3)
        #if(self.h_Player_prov!="viewer"):
        self.entity=Robot()
        super().__init__(*setvalue)
    
    
    
    

a=Player()
words=["mamawhes","hello",None,"12","12.23"]
a.input(words)
print(a.values())
for h in a.handles():
    h:handle
    print(h.vtype)